package util;

import java.util.HashMap;
import java.util.Map;

import org.apache.lucene.search.BooleanClause;

public class Configuration {

	public final static String ROOT_PATH = "D:\\code\\utility-rank\\";

	public final static String LUCENE_INDEX = ROOT_PATH + "\\index";

	public final static String[] LUCENE_INDEX_DOC_FIELDS = { "title", "param",
			"review" };

	public static Map<String, Float> LUCENE_INDEX_DOC_FIELDS_BOOST = new HashMap<String, Float>();

	static {
		LUCENE_INDEX_DOC_FIELDS_BOOST
				.put(LUCENE_INDEX_DOC_FIELDS[0], (float) 2);
		LUCENE_INDEX_DOC_FIELDS_BOOST
				.put(LUCENE_INDEX_DOC_FIELDS[1], (float) 1);
		LUCENE_INDEX_DOC_FIELDS_BOOST
				.put(LUCENE_INDEX_DOC_FIELDS[2], (float) 1);
	}

	public static BooleanClause.Occur[] LUCENE_INDEX_FIELDS_FLAG = {
			BooleanClause.Occur.SHOULD, BooleanClause.Occur.SHOULD,
			BooleanClause.Occur.SHOULD };

	public final static String REVIEW_INIT = ROOT_PATH + "src\\data\\review\\";

	public final static String POS_TAGGER_MODEL = ".\\lib\\models\\chinese.tagger";

	public final static String POS_TAGGER_INPUT = ROOT_PATH
			+ "data\\HTCS510.txt";
}